/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.close.basic.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hopes.bizz.close.basic.dto.ClosedPersonCompanyAuditDTO;
import com.hopes.bizz.close.basic.dto.ClosedPersonCompanyBindAccountDTO;
import com.hopes.bizz.close.basic.dto.ClosedPersonCompanyDTO;
import com.hopes.bizz.close.basic.dto.ClosedPersonCompanyExcelDTO;
import com.hopes.bizz.close.basic.entity.ClosedPersonCompanyEntity;
import com.hopes.bizz.close.basic.vo.ClosedPersonCompanyExcelVO;
import com.hopes.boss.common.service.ExcelService;

import java.util.List;

/**
 * 企业人员信息
 *
 * @author pig
 * @date 2024-02-20 13:41:07
 */
public interface ClosedPersonCompanyService extends ExcelService<ClosedPersonCompanyExcelDTO, ClosedPersonCompanyExcelVO, ClosedPersonCompanyEntity> {

    /**
     * 提交企业人员信息
     *
     * @param id id
     * @return 返回值
     */
    boolean submitById(Long id);

    /**
     * 新增并提交企业人员信息
     *
     * @param closedPersonCompany 新增并提交企业人员信息
     * @return 结果
     */
    boolean saveAndSubmit(ClosedPersonCompanyEntity closedPersonCompany);

    /**
     * 审核
     *
     * @param closedPersonCompanyAuditDTO 对象
     * @return 结果
     */
    boolean auditById(ClosedPersonCompanyAuditDTO closedPersonCompanyAuditDTO);

    /**
     * 移除账号绑定
     *
     * @param id id
     * @return 结果
     */
    boolean removeBindAccount(Long id);

    /**
     * 企业人员绑定账号
     *
     * @param closedPersonCompanyBindAccountDTO 对象
     * @return 结果
     */
    boolean bindAccount(ClosedPersonCompanyBindAccountDTO closedPersonCompanyBindAccountDTO);

    /**
     * 移动端分页查询我的申请
     *
     * @param page                   分页参数
     * @param closedPersonCompanyDTO 查询参数
     * @return 结果集
     */
    IPage<ClosedPersonCompanyEntity> queryAppCompanyPersonSelfPage(Page page, ClosedPersonCompanyDTO closedPersonCompanyDTO);

    /**
     * 移动端分页查询 企业待审批的申请
     *
     * @param page                   分页参数
     * @param auditStatusList        状态
     * @param closedPersonCompanyDTO 参数
     * @return 结果集
     */
    IPage<ClosedPersonCompanyEntity> queryAppCompanyPersonAuditPage(Page page, List<Integer> auditStatusList, ClosedPersonCompanyDTO closedPersonCompanyDTO);


}
